/* test_manip.cc
* This file is part of ncursesxx library
* Copyright (c) 2003,2004 by Stanislav Ievlev
*
* This file is covered by the GNU Library General Public License,
* which should be included with libncursesxx as the file COPYING.
*/
#include <iostream>
#include <stdexcept>

#include <unistd.h>

#include <ncurses/manip.hh>

int
main()
{
	ncurses::otstream os(STDOUT_FILENO);
	os << "normal" << ncurses::blue << "blue";
	os << ncurses::yellow << ncurses::bold << "yellow\n";
	os << ncurses::magenta << "magenta\n";
	os << ncurses::normal << ncurses::cyan << "cyan\n";
	os << ncurses::white << "white\n";
	os << ncurses::setfg(COLOR_BLUE, A_BOLD) << "via setfg:blue and bold" << std::endl;
	os << ncurses::setfg(COLOR_BLUE, A_NORMAL) << "via setfg:blue and normal" << std::endl;
	os << ncurses::setfg(os.colors_num() + 1, A_NORMAL) << "reset colors" << std::endl;
}
